package com.anlu.pattern.action.chain.demo1;

public class ManagerChain extends CheckChain{
    @Override
    public boolean proceed(Event event) {
        if (event.getDate() > 10) {
            System.out.println("经理权限不够，转到上级领导审批");
            if (checker != null) {
                return checker.proceed(event);
            }
            return false;
        } else {
            System.out.println("经理审批通过");
            return true;
        }

    }
}
